package com.yunchang.springboot.mapper.finance;

import com.yunchang.springboot.models.DO.finance.FinanceCaravanDocumentType;
import org.apache.ibatis.annotations.Param;

public interface FinanceCaravanDocumentTypeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FinanceCaravanDocumentType record);

    int insertSelective(FinanceCaravanDocumentType record);

    FinanceCaravanDocumentType selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FinanceCaravanDocumentType record);

    int updateByPrimaryKey(FinanceCaravanDocumentType record);

    /**
     * 根据具体单据类型和单据种类确认使用哪种计算方式
     * */
    FinanceCaravanDocumentType getInfoByRecordTypeAndDocumentName(@Param("recordType")Integer recordType,@Param("documentName")String documentName);
}